package com.mrzhou.study;

import com.mrzhou.common.constant.CommonConstant;
import com.mrzhou.core.tool.launch.CloudApplication;
import com.mrzhou.study.datasource.DynamicDataSourceConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@SpringCloudApplication
@EnableFeignClients({CommonConstant.PREFIX_PACKAGE})
@Import(DynamicDataSourceConfiguration.class)
@ComponentScan({CommonConstant.PREFIX_PACKAGE})
public class CloudStudyApplication {

    public static void main(String[] args) {
        CloudApplication.run(CommonConstant.APPLICATION_CLOUD_STUDY, CloudStudyApplication.class, args);
    }

}
